moreIconsDialog-accesses-internet
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Sat, 13 Dec 2025 08:32:27 +0000 (09:32 +0100)
committerRene Engelhard <rene@debian.org>
Sat, 13 Dec 2025 08:32:27 +0000 (09:32 +0100)
Gbp-Pq: Name moreIconsDialog-accesses-internet.diff

cui/source/dialogs/AdditionsDialog.cxx

index ed35df71468ed451def966d6d6f4d6ab9c52812d..a41d7ae2a5af62d9e416e6b820b6c7fb597cbec5 100644 (file)
@@ -277,9 +277,13 @@ SearchAndParseThread::SearchAndParseThread(AdditionsDialog* pDialog, const bool
     , m_bExecute(true)
     , m_bIsFirstLoading(isFirstLoading)
 {
-    // if we are running a UITest, e.g. UITest_sw_options then
-    // don't attempt to downloading anything
-    m_bUITest = o3tl::IsRunningUITest();
+    if (getenv("AUTOPKGTEST_TMP") != NULL) {
+        m_bUITest = false; // run always in autopkgtest
+    } else {
+        // if we are running a UITest, e.g. UITest_sw_options then
+        // don't attempt to downloading anything
+        m_bUITest = o3tl::IsRunningUITest();
+    }
 }
 
 SearchAndParseThread::~SearchAndParseThread() {}